this._clipY = 0;
this._clipWidth = 0;
this._clipHeight = 0;
- this._workspaceRatioSpacing = 0;
this._spacing = 0;
this._animating = false; // tweening
this._scrolling = false; // swipe-scrolling
this._extraWorkspaces = [];
},
- setGeometry: function(x, y, width, height, spacing) {
+ setGeometry: function(x, y, width, height) {
if (this._x == x && this._y == y &&
this._width == width && this._height == height)
return;
+
this._width = width;
this._height = height;
this._x = x;
this._y = y;
- this._workspaceRatioSpacing = spacing;
for (let i = 0; i < this._workspaces.length; i++)
this._workspaces[i].setGeometry(x, y, width, height);
Tweener.removeTweens(workspace.actor);
- let y = (w - active) * (this._height + this._spacing + this._workspaceRatioSpacing);
+ let y = (w - active) * (this._height + this._spacing);
if (showAnimation) {
let params = { y: y,
let rtl = (Clutter.get_default_text_direction () == Clutter.TextDirection.RTL);
let clipWidth = width - controlsVisible;
- let clipHeight = (fullHeight / fullWidth) * clipWidth;
+ let clipHeight = fullHeight;
let clipX = rtl ? x + controlsVisible : x;
let clipY = y + (fullHeight - clipHeight) / 2;
if (rtl)
x += widthAdjust;
- height = (fullHeight / fullWidth) * width;
- let difference = fullHeight - height;
- y += difference / 2;
-
-
let monitors = Main.layoutManager.monitors;
let m = 0;
for (let i = 0; i < monitors.length; i++) {
if (i == this._primaryIndex) {
this._workspacesViews[m].setClipRect(clipX, clipY,
clipWidth, clipHeight);
- this._workspacesViews[m].setGeometry(x, y, width, height,
- difference);
+ this._workspacesViews[m].setGeometry(x, y, width, height);
m++;
} else if (!this._workspacesOnlyOnPrimary) {
this._workspacesViews[m].setClipRect(monitors[i].x,
this._workspacesViews[m].setGeometry(monitors[i].x,
monitors[i].y,
monitors[i].width,
- monitors[i].height, 0);
+ monitors[i].height);
m++;
}
}